//
//  AppDelegate.swift
//  weibo
//
//  Created by tomato on 2021/9/8.
//

import UIKit

@main

class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        setupAppearance()
        //创建window
        window = UIWindow(frame: UIScreen.main.bounds)
        window?.backgroundColor = UIColor.white
        //设置window的rootViewController
        window?.rootViewController = MainTabBarController()
        window?.makeKeyAndVisible()
        return true
    }
    /// 设置导航栏的皮肤,越早设置越好
    private func setupAppearance() {
        
        UINavigationBar.appearance().tintColor = AppearanceTintColor
        let bar = UINavigationBar.appearance()
        bar.tintColor = AppearanceTintColor
    }
}

